package com.jiuyun.servlet;

import com.mysql.cj.Session;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;
@WebServlet("/admin/*")
public class HelloServlet extends BaseServlet {
    protected void del(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("删除");
    }
    protected void add(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("添加");
    }
    protected void find(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("查询");
        HttpSession session=request.getSession();
        String stname=request.getParameter("zh");
        String stpass=request.getParameter("mm");
        session.setAttribute("stname",stname);
        session.setAttribute("stpass",stpass);
        System.out.println("我是servlet="+stname+stpass);
    }
}
